/*
 * 上海远境文化传媒有限公司 版权所有
 */
package ext.auth;

import models.enums.OpenIdSource;

import java.io.Serializable;

/**
 * WxApp使用的用户信息.
 */
public class AppUserInfo implements Serializable {

    private static final long serialVersionUID = 1498455933845151694L;

    /**
     * 用于保存登录得到的sessionKey.
     */
    public String sessionKey;

    /**
     * 系统中的用户主键ID
     */
    public String userId;

    public String openId;

    public String  nickName;

    public Integer gender;

    public String  language;

    public String  city;

    public String  province;

    public String  country;

    public String avatarUrl;

    public String         unionId;

    public OpenIdSource openIdSource;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("WxAppUserInfo{");
        sb.append("openId='").append(openId).append('\'');
        sb.append(", sessionKey='").append(sessionKey).append('\'');
        sb.append(", nickName='").append(nickName).append('\'');
        sb.append(", gender=").append(gender);
        sb.append(", language='").append(language).append('\'');
        sb.append(", city='").append(city).append('\'');
        sb.append(", province='").append(province).append('\'');
        sb.append(", country='").append(country).append('\'');
        sb.append(", avatarUrl='").append(avatarUrl).append('\'');
        sb.append(", unionId='").append(unionId).append('\'');
        sb.append(", openIdSource=").append(openIdSource);
        sb.append('}');
        return sb.toString();
    }
}
